package cn.zhengzhou.springbootmybatis.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

//@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private String id;
    private String name;
    private int age;
    private String sex;

    private void Pmothde(String name){

        System.out.println(name+"私有方法");

    }
    private Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public Student(String name,String sex){
        this.name = name;
        this.sex = sex;
        System.out.println("学生的名字和性别");
    }
}
